package com.action.sanction;

import java.util.ArrayList;

import com.db.appline.AppLineManager;
import com.db.appline.AppLineVO;
import com.db.appline.ApprovalLineVO;
import com.db.appline.RepDateVO;
import com.db.member.MemInfoVO;
import com.db.member.MemberManager;
import com.db.sanction.DocumentManager;
import com.db.sanction.MemberDeptVO;
import com.sun.xml.internal.txw2.Document;

public class RegAppLineAction {
	private int memno;
	private ArrayList<AppLineVO> list = new ArrayList<AppLineVO>();
	private ArrayList<ApprovalLineVO> applist = new ArrayList<ApprovalLineVO>();
	private RepDateVO dateVo = new RepDateVO();

	private ArrayList<MemberDeptVO> deptlist = new ArrayList<MemberDeptVO>();

	private ArrayList<MemInfoVO> memlist = new ArrayList<MemInfoVO>();

	public ArrayList<MemInfoVO> getMemlist() {
		return memlist;
	}

	public void setMemno(int memno) {
		this.memno = memno;
	}

	public int getMemno() {
		return memno;
	}

	public ArrayList<AppLineVO> getList() {
		return list;
	}

	public ArrayList<ApprovalLineVO> getApplist() {
		return applist;
	}

	public RepDateVO getDateVo() {
		return dateVo;
	}

	public ArrayList<MemberDeptVO> getDeptlist() {
		return deptlist;
	}

	public String execute() throws Exception {
		System.out.println("regAppLine");
		deptlist = (ArrayList<MemberDeptVO>) DocumentManager.getDept();
		memlist = (ArrayList<MemInfoVO>) MemberManager.meminfoAllData();

		System.out.println(memlist.size());

		return "success";
	}
}
